<!DOCTYPE html>
<html lang="en" ng-app="ita-app">

<head>
  <title>Angularjs Webpack Boilerplate</title>
  <base href="/#!/">
  <meta charset="UTF-8">
</head>

<body>

  <span id="badge" class="badge" style="background:green;margin-left:155px;margin-top:15px;z-index:99;position:fixed;display: inline-block;">0</span>
  <!-- Router View Area -->
  <ui-view class='main-body'></ui-view>

  <script src="http://10.222.29.185:8999/socket.io/socket.io.js"></script>
  <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  <script type="text/javascript">
    var socket = io.connect('ws://10.222.29.185:8999')//与服务器进行连接

    //接收来自服务端的信息事件c_hi
    socket.on('bubble', function (msg) {
      $("#badge").html(parseInt($("#badge").html())+1);
    });
  </script>
</body>

</html>